//提升后
/* var myname = undefined
function showName(){
    console.log('函数showName被执行')
}
//执行
showName()
console.log(myname);
name = 'cmx' */

/* function add(){
    var b = 10
    return a+b
}

console.log(add());
 */
var a = 2
function add(b,c){
    return b + c
}

function addAll(b ,c){
    var d =10 
    var result = add(b,c)
    return a+result +d
}
console.log(addAll(3,6));
